﻿using System.Web.Mvc;
using MvcContrib.PortableAreas;

namespace Dexter.PluginManager
{
	public abstract class Pluginregistration : PortableAreaRegistration
	{
	}

	public static class AreaRegistrationContextExtension
	{
		public static void MapRoute(this AreaRegistrationContext context, string name, string url, object defaults, string[] namespaces)
		{
			var routeUrl = string.Format("backoffice/{0}/", url);
			context.MapRoute(name, routeUrl, defaults, namespaces);
		}
	}
}